package chalmers.game.subterranean.model.items;

import chalmers.game.subterranean.model.world.IWorld;
import chalmers.game.subterranean.util.Direction;
import chalmers.game.subterranean.util.Position;

/**
 * User: Mikael Friederici Date: 2014-05-17 Time: 00:17
 */
public class Pickaxe implements IEquippableItem {
  IWorld world;
  private double damage = 1.0;
  public final String name="Pickaxe";

  public Pickaxe(IWorld world) {
    this.world = world;
  }

  @Override
  public void action(Position position, Direction direction) {
    world.dig(direction, position, damage);
  }

  @Override
  public String toString(){
    return name;
  }
}
